
from .mqtt_service import MQTTService


class ServiceManager:
    """统一管理所有后台服务"""
    def __init__(self):
        self.mqtt = MQTTService()

    def start_all(self):
        self.mqtt.start()

    def stop_all(self):
        self.mqtt.stop()


# 全局单例
service_manager = ServiceManager()
